package neuroPoker.netze;

import neuroPoker.poker.Karte;

public class NetKarte extends Karte{
	
	public NetKarte(char w, char f) {
		super(w,f);
	}

	public double[] getInput() {
		// wert
		double[] inWer = new double[4];
		if (w == 'A')
			inWer = new double[] { 1., 1., 1., 1. };
		else if (w == 'K')
			inWer = new double[] { 1., 1., 1., 0. };
		else if (w == 'Q')
			inWer = new double[] { 1., 1., 0., 1. };
		else if (w == 'J')
			inWer = new double[] { 1., 1., 0., 0. };
		else if (w == 'T')
			inWer = new double[] { 1., 0., 1., 1. };
		else if (w == '9')
			inWer = new double[] { 1., 0., 1., 0. };
		else if (w == '8')
			inWer = new double[] { 1., 0., 0., 1. };
		else if (w == '7')
			inWer = new double[] { 1., 0., 0., 0. };
		else if (w == '6')
			inWer = new double[] { 0., 1., 0., 0. };
		else if (w == '5')
			inWer = new double[] { 0., 0., 1., 1. };
		else if (w == '4')
			inWer = new double[] { 0., 0., 1., 0. };
		else if (w == '3')
			inWer = new double[] { 0., 0., 0., 1. };
		else if (w == '2')
			inWer = new double[] { 0., 0., 0., 0. };
		// farbe
		double[] inFar = new double[2];
		if (f == 'c')
			inFar = new double[] { 1., 1. };
		else if (f == 's')
			inFar = new double[] { 1., 0. };
		else if (f == 'h')
			inFar = new double[] { 0., 1. };
		else if (f == 'd')
			inFar = new double[] { 0., 0. };
		// Gesamt
		double[] in = new double[6];
		System.arraycopy(inWer, 0, in, 0, inWer.length);
		System.arraycopy(inFar, 0, in, inWer.length, inFar.length);
		return in;
	}

}
